//
//  MeRegisterRegisterVC.m
//  ZITHER
//
//  Created by weixin on 2019/1/16.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "MeRegisterRegisterVC.h"


@interface MeRegisterRegisterVC ()
@property (nonatomic,strong)QMUITextField *fieldLogin;
@property (nonatomic,strong)MeRegisterRegisterDefault *DefaultView;
@end

@implementation MeRegisterRegisterVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.baseNavigationView.navViewStyle.isShowShadow = YES;
    self.baseNavigationView.bottomLineView.hidden = YES;
    
    [self.view addSubview:self.DefaultView];
//    self.DefaultView.backgroundColor = [UIColor redColor];
    [self.DefaultView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view).offset(0);
        make.top.equalTo(self.view).offset(NaviHeight);
    }];
}


-(void)setState:(MeRegisterRegisterState)state{
    _state = state;
    self.DefaultView.state = state;
    switch (state) {
        case MeRegisterRegisterStateRegister:
            [self initRegister];
            break;
        case MeRegisterRegisterStateForget:
            [self initForget];
            break;
        case MeRegisterRegisterStateSetPassword:
            [self initSetPassword];
            break;
        default:
            break;
    }
    
    
}


-(void)initRegister{
    //注册
//    [self.baseNavigationView setHiddenNav:noErr VC:self];
    /* TODO: ================= 导航栏V4样式 =================*/
    [self.baseNavigationView NavigationBarStyle:1];
    self.baseNavigationView.navViewStyle.title.text = @"注册";
    self.baseNavigationView.navViewStyle.backgroundColor = [UIColor whiteColor];

}

-(void)initForget{
    //忘记密码
    [self.baseNavigationView NavigationBarStyle:1];
    self.baseNavigationView.navViewStyle.title.text = @"忘记密码";
    self.baseNavigationView.navViewStyle.backgroundColor = [UIColor whiteColor];
}

-(void)initSetPassword{
    //设置登录密码
    [self.baseNavigationView NavigationBarStyle:1];
    self.baseNavigationView.navViewStyle.title.text = @"设置登录密码";
    self.baseNavigationView.navViewStyle.backgroundColor = [UIColor whiteColor];


}

- (MeRegisterRegisterDefault *)DefaultView{
    if (!_DefaultView) {
        _DefaultView = [[MeRegisterRegisterDefault alloc]init];
    }
    return _DefaultView;
}
@end
